Skip to main content

iphoneAllowBackgroundLocationUpdates

Type

command

Summary

Allows the app to receive location updates when it is suspended

Syntax

iphoneAllowBackgroundLocationUpdates <pAllow>

Description

Use the iphoneAllowBackgroundLocationUpdates command to allow (or disallow) the app receiving location updates when it is suspended.

This command has an effect only if "Location Update" is checked in the "Background Execution" section in the iOS standalone settings.

Parameters

NameTypeDescription

pAllow

boolean

A boolean value specifying if the app should continue to receive location updates when put in the background.

Examples

mobileStartTrackingSensor "location"
iphoneAllowBackgroundLocationUpdates "true"
iphoneAllowBackgroundLocationUpdates "false"

command: mobileStartTrackingSensor, mobileStopTrackingSensor

Compatibility and Support

Introduced

LiveCode 9.6.3

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?